1
1
.
.
3
3
.
.
1
1
R
R
u
u
n
n
I
I
n
n
f
f
o
o
This tutorial shows how to run Spring Boot Application.
We will and display a message in the Console just to make sure everything is working properly.
R
R
u
u
n
n
A
A
p
p
p
p
l
l
i
i
c
c
a
a
t
t
i
i
o
o
n
n
Create Spring Boot Project (no additional dependencies needed)
Edit Java Class: TestSpringBootApplication.java (insert highlighted line)
Run Application
ConsoleApplication.java
package com.ivoronline.console_application;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class ConsoleApplication {
public static void main(String[] args) {
SpringApplication.run(ConsoleApplication.class, args);
System.out.println("Hello from ConsoleApplication");
}
}
Application
Console
Hello from ConsoleApplication